From: Guido Günther Date: Wed, 31 Dec 2025 10:55:41 +0000 (+0100) Subject: mixer-control: Don't leak ui device X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2^2^2^2~8 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a00aab6fb6470d0c00596d42767af9ac83e989b3;p=gnome-shell.git mixer-control: Don't leak ui device We have a ref when creating the `device` object, use that for inserting into the hash table as otherwise we leak that reference. Signed-off-by: Guido Günther Applied-upstream: gnome-shell 49.4, commit:d0e1664ac6278b70a7e26bf8135f0d1d92ee1e9f Gbp-Pq: Topic libgvc Gbp-Pq: Name mixer-control-Don-t-leak-ui-device.patch --- diff --git a/subprojects/gvc/gvc-mixer-control.c b/subprojects/gvc/gvc-mixer-control.c index 51e389fd5..c7f961349 100644 --- a/subprojects/gvc/gvc-mixer-control.c +++ b/subprojects/gvc/gvc-mixer-control.c @@ -1367,7 +1367,7 @@ sync_devices (GvcMixerControl *control, g_hash_table_insert (is_output ? control->priv->ui_outputs : control->priv->ui_inputs, GUINT_TO_POINTER (gvc_mixer_ui_device_get_id (device)), - g_object_ref (device)); + device); g_signal_emit (G_OBJECT (control), signals[is_output ? OUTPUT_ADDED : INPUT_ADDED],